package com.jhy.lads.commons;

/**
 * @Description:
 * @authoer:jihaiyu
 * @date: 2017/6/13 14:57
 */
public enum SYEnum {
    ONE(0.01), TWO(0.02), THREE(0.03), Four(0.04), FIVE(0.05),
    SIX(0.06), SEVEN(0.08), EIGHT(0.09), TEN(0.10), ELEVEN(0.11);

    private double value;

    private SYEnum(double value) {
        this.value = value;
    }

    public double getValue() {
        return value;
    }

    public static SYEnum get(int value) {
        for (SYEnum p : SYEnum.values()) {
            if (p.getValue() == value)
                return p;
        }
        throw new IllegalArgumentException("unknown value:" + value);
    }
}
